T=[0,0;...
    1,2;...
    3,1;...
    8,8;...
    9,10;...
    10,7];
result=k_mean(T,2);
plot(T(:,1),T(:,2),'o');